<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<link rel="stylesheet" href="css/s.css" />

<link rel="stylesheet" href="css/cc-sk-2.5.0.min.css">
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/jsencrypt.min.js"></script>
<script type="text/javascript" src="js/screen.min.js"></script>
<script type="text/javascript" src="js/i2f-securityKeyboard.min.js"></script>
<script type="text/javascript">
	$(function(){
			var numberSecurityKeyboard=$.getSecurityKeyboard("SecurityKeyboardServlet","Number");
			pwd1=numberSecurityKeyboard.init({
				elementId:"pwd1",
				placeholder:"请输入原交易密码",
				length:6,
			});
			pwdNew=numberSecurityKeyboard.init({
				elementId:"pwdNew",
				placeholder:"请输入新交易密码",
				length:6,
			});
			pwdNew1=numberSecurityKeyboard.init({
				elementId:"pwdNew1",
				placeholder:"请再次输入新交易密码",
				length:6,
			});
			
		});
		function toVaild(){
			if(pwd1.getLength()!=6){
				alert("願交易密碼長度不夠");
				return false;
			}if(pwdNew.getLength()!=6){
				alert("新交易密碼長度不夠");
				return false;
			}if(!pwdNew.equals(pwdNew1)){
				alert("兩次輸入密碼不一致");
				return false;
			}
			return true;
		}
</script>

<title>修改账户密码</title>
</head>

<body>
    <script type="text/javascript" src="js/WapRoot.js" ></script>
    <header>
       
       <h1><a href="security.html"></a>修改账户密码</h1> 
    </header>


    <section class="sec2">
    <form action="success.jsp"  onsubmit="return toVaild('')">
        <div>
            <img src="images/suo.png" alt="">
            <div>
            	<input type="password" id="pwd1" name="pwd1" placeholder="请输入原交易密码" >
			</div>
        </div>
        <div>
            <img src="images/suo.png" alt="">
            <div>
            	<input type="password"  id="pwdNew" name="pwdNew" placeholder="请输入新交易密码" >
            </div>
        </div>
        <div>
            <img src="images/suo.png" alt="">
            <div>
            	<input type="password"  id="pwdNew1" name="pwdNew1" placeholder="请再次输入新交易密码" >
            </div>
        </div>
        <p>交易密码需为6位数字</p>
	     <input type="submit" value="提交"/>
      </form>
    </section>
    
    </body>
</html>